﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_Service_addStudent : ManagePageBase {

    protected void Page_Load(object sender, EventArgs e) {
        //stuNum,stuName,stuPas,stuEmail,stuDept=
        string stuNum = Request.Form["stuNum"].Trim();
        string stuName = Request.Form["stuName"].Trim();
        string stuPas = Request.Form["stuPas"].Trim();
        string stuEmail = Request.Form["stuEmail"].Trim();
        string stuDept = Request.Form["stuDept"].Trim();

        if(!IsPostBack){
            string result = "0";
            if (new Exam.Core.DAL.Student().Add(stuNum, stuName, stuPas, stuEmail, stuDept))
                result = "1";
            Response.Write(result);
            Response.End();
        }


    }
}
